<% scripts.forEach(function(js){  %>

<script src="<%= js %>"></script>

<% }) %>


<%
    if(local.scripts) {
        local.scripts.forEach(function(js){  %>

<script src="<%= js %>"></script>

<%      })
    }
 %>